﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DeviceFinder.Models
{
    public class TokenModel
    {
        private string token;

        public string Token
        {
            get { return token; }
            set { token = value; }
        }
        private int deviceId;

        public int DeviceId
        {
            get { return deviceId; }
            set { deviceId = value; }
        }

        private STATUS_TOKEN status;

        public STATUS_TOKEN Status
        {
            get { return status; }
            set { status = value; }
        }
        
        public enum STATUS_TOKEN { 
            SUCCESS = 1, 
            FAIL = -1
        };

        public DateTime expire = DateTime.Now + new TimeSpan(0, 30, 0);

        public bool isAccessToken { get; set; }
    }
}